import axios from 'axios'

//主页请求
export function requestMain(config) {
  const base = axios.create({
    baseURL: "http://152.136.185.210:7878/api/hy66",
    timeout: 3000,
    // method: 'GET'
  })

  base.interceptors.request.use(config => {
    return config
  }, err => {
    console.log(err);
  })

  base.interceptors.response.use(res => {
    return res
  }, err => {
    console.log(err);
  })

  return base(config)
}

//第二个实例
export function instanceCatagory() {

}